﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration.Install;
using System.Linq;
using System.ServiceProcess;


namespace WxStockWinSvc
{
    [RunInstaller(true)]
    public partial class MainServiceInstaller : System.Configuration.Install.Installer
    {
        public MainServiceInstaller()
        {
            InitializeComponent();

            ServiceProcessInstaller procInstaller = new ServiceProcessInstaller();
            procInstaller.Account = ServiceAccount.LocalSystem;
            Installers.Add(procInstaller);

            ServiceInstaller svcInstaller = new ServiceInstaller();
            svcInstaller.StartType = ServiceStartMode.Automatic;
            svcInstaller.ServiceName = "WxStockWinSvc";
            svcInstaller.Description = "【闻祖东 2012-11-22-222614】文西的获取股票信息的服务";
            svcInstaller.DisplayName = "Wenxi.Stock.Windows.Service";

            Installers.Add(svcInstaller);
        }
    }
}
